package com.kube.design.responsibility;

/**
 * @author q.zhangr
 * @version 1.0.0
 * @date 2020/7/15
 */
public class TeacherHandler extends AbstractHandler {

    @Override
    public String handlerRequest(String user, Integer days) {
        if (days < 5) {
            System.out.println("班主任同意" + user + "同学的请假请求");
        } else {
            System.out.println("班主任无法处理" + user + "同学的请假请求");
        }

        if (getAbstractHandler() != null){

            return getAbstractHandler().handlerRequest(user,days);
        }

        return null;
    }


}
